-- GENERATED SPELL FOR [Carrion Lurker] --


function spell0_1821(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1821', 30000, 1)
end

function spell1_1821(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1821', 5300, 1)
end

function Sorts_1821(pUnit, Event)
local choix_sorts_1821 = math.random(0, 1)
if choix_sorts_1821 == 0 then
pUnit:RegisterEvent('spell0_1821', 1, 1)
end
if choix_sorts_1821 == 1 then
pUnit:RegisterEvent('spell1_1821', 1, 1)
end
end

function mob1821_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1821', math.random(1500, 3000), 1)
end

function mob1821_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1821_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1821_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1821, 1, 'mob1821_Action')
RegisterUnitEvent(1821, 2, 'mob1821_Leave')
RegisterUnitEvent(1821, 3, 'mob1821_Kill')
RegisterUnitEvent(1821, 4, 'mob1821_Die')
